import axios from '../api'

export function accountLogin(user_mobile: string, user_password: string) {
  return axios.post('/User/accountLogin', {
    user_mobile,
    user_password,
  })
}

export function smsLogin(user_mobile: string, code: string) {
  return axios.post('/User/smsLogin', {
    user_mobile,
    code,
  })
}

export function modify(user_mobile: string, user_password: string, code: string) {
  return axios.post('/User/modify', {
    user_mobile,
    user_password,
    code,
  })
}

export function info() {
  return axios.get('/User/info')
}
